package com.generate.control;

import javax.swing.JCheckBox;

public class JCheckFlagBlock extends JCheckBox implements IFlagBlock, IReplace {

	public JCheckFlagBlock() {
		super();
		IReplace.lstReplaceComponent.add(this);
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String findText;

	public String getFindText() {
		return this.findText;
	}

	public void setFindText(String findText) {
		this.findText = findText;
	}

	private String falseText;
	private String trueText;

	@Override
	public String getTrueText() {
		return this.trueText;
	}

	@Override
	public void setTrueText(String trueText) {
		this.trueText = trueText;
	}

	@Override
	public String getFalseText() {
		return this.falseText;
	}

	@Override
	public void setFalseText(String falseText) {
		this.falseText = falseText;
	}

	@Override
	public String getReplaceText() {
		return isSelected() ? trueText : falseText;
	}

	@Override
	public void setReplaceText(String replaceText) {

	}

}
